using System.Configuration;
using System.Data;
using System.Data.SqlClient;

namespace SouthernLand.Common.DAL
{
    public class BaseDAL
    {
        protected string Connstr = ConfigurationManager.ConnectionStrings["SqlServices"].ToString();
        protected SqlConnection GetConnectionString()
        {
            var myConn = new SqlConnection(Connstr);
            if (myConn.State == ConnectionState.Open)
                myConn.Close();


            myConn.Open();
            return myConn;
        }
    }
}